<template>
	<view class="box">
		<!-- 背景色 -->
		<view class="bg f-w">
			<image src="https://jw.xzsw2021.com/static/big/bj@2x.png" mode=""></image>
		</view>
		<!--  -->
		<view class="title tr">{{is_get?'恭喜获得家味亲友卡':'抱歉，已达到领取上限'}}</view>
		<view class="big">
			<view class="box1"></view>
			<view class="box2">
				<view class="bg2">
					<image src="https://jw.xzsw2021.com/static/big/tu_99@2x.png" mode=""></image>
				</view>
				<view class="b2">
					<view class="btn" @click="goLingqu" :class="is_get?'':'hui'">立即领取</view>
				</view>
				
			</view>
			<view class="box3">
				<view class="bg3">
					<image src="https://jw.xzsw2021.com/static/big/ka@2x.png" mode=""></image>
				</view>
				<view class="desc">{{desc}}</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				is_get:false,//
				desc:'尊贵的PLUS会员，专享特权;尊贵的PLUS会员，专享特权'
			}
		},
		methods: {
			// 立即领取
			goLingqu(){
				if(this.is_get){
					console.log('立即领取');
				}
				
			},
			zhankai(){
				this.look=!this.look
			}
		}
	}
</script>

<style lang="scss" scoped>
	.box{
		position: relative;
		height: 100vh;
		overflow: hidden;
		.bg{
			left: 0;
			top: 0;
			width: 750rpx;
			height: 100vh;
			position: absolute;
			background-color: #fceee3;
			image{
				width: 100%;
				height: 100%;
			}
		}
		.title{
			position: relative;
			margin-top: 7vh;
			// margin-top: 140rpx;
			font-size: 62rpx;
			font-weight: bold;
			color: #773D02;
		}
		.big{
			position: relative;
			position: absolute;
			width: 690rpx;
			min-height: 765rpx;
			// margin: 0 auto;
			top: 50%;
			left:50%;
			transform: translate(-50% , -50%);
			
		}
		.box1{
			position: absolute;
			left: 0;
			bottom: 0;
			width: 690rpx;
			height: 625rpx;
			background-color: #FBA933;
			border-radius: 20rpx;
			z-index: 11;
		}
		.box2{
			position: absolute;
			left: 0;
			bottom: 0;
			width: 690rpx;
			height: 340rpx;
			// background: linear-gradient(100deg, #FEE7A4 0%, #FFD069 100%);
			box-shadow: 0rpx 12rpx 16rpx 0rpx rgba(233, 149, 100, 0.65);
			border-radius: 0rpx 0rpx 20rpx 20rpx;
			overflow: hidden;
			z-index: 13;
			.bg2{
				position: absolute;
				left: 0;
				top: 0;
				width: 690rpx;
				// height: 70rpx;
				// background-color: rgba(255,255,255,1);
				// border-radius: 100% 100% 100% 100%/ 200% 200% 0 0;
				// transform: rotate(180deg);
				height: 340rpx;
				image{
					margin-left: -14rpx;
					width: 720rpx;
					height: 372rpx;
					border-radius: 0rpx 0rpx 20rpx 20rpx;
				}
			}
			.aaa{
				position: absolute;
				width: 690rpx;
				height: 340rpx;
				image{
					width: 100%;
					height: 100%;
					border-radius: 0rpx 0rpx 20rpx 20rpx;
				}
			}
			.b2{
				position: relative;
				width: 690rpx;
				height: 340rpx;
				z-index: 14;
				// background: linear-gradient(100deg, #FEE7A4 0%, #FFD069 100%);
				.hui{
					
					background: #EEEEEE;
					color: #999999;
				}
			}
				.btn{
					// margin-top: 149rpx auto 0;
					margin: 149rpx auto 0;
					width: 470rpx;
					height: 93rpx;
					line-height: 93rpx;
					font-size: 40rpx;
					color: #FFFFFF;
					text-align: center;
					background: linear-gradient(90deg, #FF959F, #FE6267);
					border-radius: 47rpx;
					z-index: 15;
				}
		}
		.box3{
			position: absolute;
			left: 15rpx;
			top: 0;
			padding: 28rpx 30rpx 0;
			width: 660rpx;
			height: 550rpx;
			border-radius: 10rpx;
			box-sizing: border-box;
			z-index: 12;
			.bg3{
				position: absolute;
				left: 0;
				top: 0;
				width: 660rpx;
				height: 507rpx;
				image{
					width: 100%;
					height: 100%;
				}
			}
			.desc{
				position: relative;
				padding: 88rpx 50rpx 0;
				box-sizing: border-box;
				line-height: 60rpx;
			}
		}
	}
</style>
